package cn.edu.gench.learn.day1;

/**
 * @auther zhuzhongbiao
 * @date 2017/3/17 0017
 */
public class ScoreExchange {

    public static String exchange(float score){
        String result = "";
        if(score >= 90){
            result = "A";
        }else if(score >= 80){
            result = "B";
        }else if(score >= 70){
            result = "C";
        }else{
            result = "D";
        }

        return result;
    }


    public static void main(String[] args) {
        String result = ScoreExchange.exchange(50);
        System.out.printf(result);
    }
}
